import {useNavigate, useLocation} from "react-router-dom";

const useNav = () => {
  const navigate = useNavigate();
  const location = useLocation();

  return {
    goto: navigate,
    location
  }
}

export default useNav;